package com.mk.service;

import com.mk.base.service.IBaseService;
import com.mk.model.entity.FileInfo;
import com.mk.model.request.FileInfoRequest;

import java.util.List;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 11:20 AM 3/16/18
 */
public interface IFileInfoService extends IBaseService<FileInfo> {

    Boolean saveFile(FileInfoRequest request);

    Boolean updateFile(FileInfoRequest request);

    Boolean updateSnum(Long id);

    Boolean updateDnum(Long id);

    Boolean deleteFile(Long id);

    Boolean saveOnlyOne(FileInfoRequest request);

    Boolean delAllFilesByPacId(Long dirId, Long pacId);

    FileInfo get(Long id);

    List<FileInfo> findByDirId(Long dirId,Long pacId);

    List<FileInfo> keySearch(String key);
}
